GtkCssProvider: Parse properties of type GtkAnimationDescription.
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 19 Aug 2010 19:50:19 +0000 (21:50 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 4 Dec 2010 14:37:38 +0000 (15:37 +0100)
gtk/gtkcssprovider.c

index 0ca90fb0b51bca55e5f8f0eb3afb84a1092c0cc7..c9c5a17aed4b92f725137212e188dd937726c6f6 100644 (file)
@@ -24,6 +24,7 @@
 #include <gtk/gtk.h>
 #include <gtkstyleprovider.h>
 
+#include "gtkanimationdescription.h"
 #include "gtkcssprovider.h"
 
 #include "gtkalias.h"
@@ -1393,6 +1394,17 @@ css_provider_parse_value (const gchar *value_str,
       engine = gtk_theming_engine_load (value_str);
       g_value_set_object (value, engine);
     }
+  else if (type == GTK_TYPE_ANIMATION_DESCRIPTION)
+    {
+      GtkAnimationDescription *desc;
+
+      desc = gtk_animation_description_from_string (value_str);
+
+      if (desc)
+        g_value_take_boxed (value, desc);
+      else
+        parsed = FALSE;
+    }
   else
     {
       g_warning ("Cannot parse string '%s' for type %s", value_str, g_type_name (type));